import threading
import time

def thread_test1():
    cur = threading.current_thread()
    print(cur)
    for i in range(10):
        print('线程1')
        time.sleep(0.5)

def thread_test2():
    cur=threading.current_thread()
    print(cur)
    for i in range(10):
        print('线程2')
        time.sleep(0.5)

if __name__ == '__main__':
    cur = threading.current_thread()
    print(cur)
    test1=threading.Thread(target=thread_test1)
    test2=threading.Thread(target=thread_test2)
    test1.start()
    test2.start()